package mi.payment.ui.qr.code;

import android.graphics.Point;

/**
 * @author KenMa on 2016/10/10.
 */

public class ScanConfig {

    // 扫描完成声音提示
//    public static boolean PLAY_SOUND = true;
//    // 扫描完成震动
//    public static boolean PLAY_VIBRATE = false;
//    // 识别反色二维码
//    public static boolean IDENTIFY_INVERSE_QR_CODE = true;
//    // 识别画面中多个二维码
//    public static boolean IDENTIFY_MORE_CODE = false;

    public static final String QR_CODE_PLATFORM = "PLATFORM";
    public static final int PLATFORM_ALL = 666;//全支付
    public static final int PLATFORM_AliPay = 1;
    public static final int PLATFORM_WeChat = 2;
    public static final int PLATFORM_UnionPay_Wallet  = 4;

    public static final String QR_CODE_METHOD = "METHOD";
    // 主扫
    public static final int SCAN_METHOD = 1;
    // 被扫
    public static final int PASSIVE_METHOD = 2;
    // 消费撤销
    public static final int CONSUMPTION_CANCEL = 3;
    // 消费退货
    public static final int CONSUMPTION_RETURN = 4;

    public static final String AMOUNT = "amount";
    public static final String DISCOUNT_AMOUNT = "DiscountAmount";
    // 扫描结果的数据的键
    // 扫描码的类型
    public static final String TYPE = "TYPE";
    // 扫描码的数据
    public static final String VALUE = "VALUE";

    public static Point BEST_RESOLUTION;
}
